package router

import (
	"github.com/gin-gonic/gin"
	"userop_bff/controller/address"
)

func InitAddressRouter(router *gin.Engine) {

	OrderRouter := router.Group("/v1/address")
	{
		OrderRouter.GET("", address.List)      //地址列表
		OrderRouter.POST("", address.Add)      //添加地址
		OrderRouter.DELETE("", address.Delete) //删除地址
		OrderRouter.PUT("", address.Update)    //修改地址
	}
}
